﻿CREATE TABLE [dbo].[UserBaseInfo] (
    [UserID]            BIGINT         IDENTITY (10001, 1) NOT NULL,
    [UserName]          NVARCHAR (32)  NULL,
    [MobileNo]          VARCHAR (15)   NULL,
    [Email]             NVARCHAR (100) NULL,
    [UserStatus]        TINYINT        NOT NULL,
    [UserAttribute]     TINYINT        NULL,
    [LoginPwd]          CHAR (512)     NULL,
    [PwdKey]            CHAR (64)      NULL,
    [AccessoriesOption] TINYINT        NULL,
    [Balance]           MONEY          CONSTRAINT [DF_UserBaseInfo_Balance] DEFAULT ((0)) NOT NULL,
    [TicketVersion]     INT            CONSTRAINT [DF_UserBaseInfo_TicketVersion] DEFAULT ((0)) NOT NULL,
    CONSTRAINT [PK_USERBASEINFO] PRIMARY KEY CLUSTERED ([UserID] ASC)
);




GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'辅料选项 1：需要辅料', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'AccessoriesOption';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'登录密码', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'LoginPwd';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户属性', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'UserAttribute';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户状态 1:启用', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'UserStatus';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'邮箱', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'Email';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'手机号', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'MobileNo';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户名', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'UserName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo', @level2type = N'COLUMN', @level2name = N'UserID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户基本信息', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBaseInfo';

